package com.imusic.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("user_message")
public class UserMessage implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("sender_id")
    private Integer senderId;

    @TableField("sender_name")
    private String senderName;

    private String content;

    private Short type;

    @TableField("is_read")
    private Short isRead;

    @TableField("read_time")
    private Date readTime;

    @TableField("created_time")
    private Date createdTime;
}
